package valve_test.transportation;

import valve_test.DAO.Factory;
import valve_test.logic.*;

import java.sql.SQLException;
import java.util.List;

/**
 * Класс контейнер, для хранения данных из базы по таблицам
 */
public class Container {

    private List<valves> valvesList;
    private List<ierarchy> ierarchyList;
   /*
    public Container() throws SQLException {
        this.valvesList = Factory.getInstance().getValvesDAO().getAllValves();
        this.ierarchyList = Factory.getInstance().getIerarchyDAO().getAllIerarchies();
        this.inputList = Factory.getInstance().getInputDAO().getAllInputs();
        this.outputList = Factory.getInstance().getOutputDAO().getAllOutputs();
    }
    */
    public List<valves> getValvesList() {
        return valvesList;
    }

    public void setValvesList(List<valves> valvesList) {
        this.valvesList = valvesList;
    }

    public List<ierarchy> getIerarchyList() {
        return ierarchyList;
    }

    public void setIerarchyList(List<ierarchy> ierarchyList) {
        this.ierarchyList = ierarchyList;
    }

}
